package ar.edu.unq.wannaplay.pages.employee;

import ar.edu.unq.wannaplay.dtos.EmployeeDTO;
import ar.edu.unq.wannaplay.pages.WPPage;
import ar.edu.unq.wannaplay.panels.employee.SingleEmployeeViewPanel;

public class SingleEmployeeViewPage extends WPPage {

    private EmployeeDTO modelObject;

    public SingleEmployeeViewPage(final EmployeeDTO modelObject) {
        super("Employee Details Page");
        this.modelObject = modelObject;
        this.initialize();
    }

    @Override
    protected void addMainContent() {
        this.add(new SingleEmployeeViewPanel("mainContent", modelObject));
    }

    public EmployeeDTO getModelObject() {
        return modelObject;
    }

    public void setModelObject(final EmployeeDTO modelObject) {
        this.modelObject = modelObject;
    }

}
